package dao

import (
	"doctor_srv/global"
	"doctor_srv/model"
)

func GetHospitalsList(offset int, limit int) []model.Hospital {
	var Hospitals []model.Hospital
	global.DB.Offset(offset).Limit(limit).Find(&Hospitals)

	return Hospitals
}
